<?php

function sumOfN($number){
	
	if ( $number==0){
		return 0;
	}
	elseif($number==1){
		return $number;
	}
	else
		return $number+sumOfN($number-1);
}
echo sumOfN(6);
?>